<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/common/head.jsp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE html>
<html lang="zh-CN">

	<head>
		<meta charset="UTF-8">
		<title>修改部门</title>
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<link rel="stylesheet" href="${resource }/css/bootstrap.css" />
		<script type="text/javascript" src="${resource }/js/jquery-2.1.1.min.js"></script>
	</head>

	<body>
		<div class="row wrapper border-bottom white-bg page-heading">
			<div class="col-sm-4">
				<h2>部门管理</h2>
				<ol class="breadcrumb">
					<li>
						<a href="index.html">主页</a>
					</li>
					<li>
						<strong>修改部门</strong>
					</li>
				</ol>
			</div>
		</div>
		<div class="row wrapper border-bottom white-bg page-heading">
			<div class="col-md-12">
				<!-- 用户列表--bootstrap高级表格使用 -->
				<div class="panel panel-default">
					<div class="panel-heading">修改部门</div>
					<div class="panel-body">
						<form action="update.do" method="post">
						     
							<div class="form-group">
							    <input type="hidden" value=${list.id } name="id"></input>
								<label for="txtAccount">部门名称</label> <input type="text" class="form-control" id="deptName" name="deptName" placeholder="部门名称" value="${list.deptName  }" >
							</div>
							<!-- <div class="form-group">
								<label for="txtUserName">部门状态</label> <input type="text" class="form-control" name="username" placeholder="部门状态">
							</div> -->
							 <div class="form-group">
										<label for="txtRole"  >部门状态</label>
										<select id="txt"  name="isStop" class="form-control" >
											<option value="1" <c:if test="${list.isStop==1}">selected</c:if> >使用</option>
											<option value="0"  <c:if test="${list.isStop==0}">selected</c:if> >禁用</option>
									
										</select>
							</div> 
							<div class="form-group">
								<label for="txtBirthday">部门简介</label> <input type="text" class="form-control" id="departProfile" name="deptProfile"  placeholder="部门简介" value="${list.deptProfile }">
							</div>
							<button type="submit" class="btn btn-success" id="saveuser">保存</button>
							<button type="button" class="btn btn-info"  onclick=" rese()">重置</button>
						</form>
					</div>
				</div>
			</div>
			<!--表格结束 -->
		</div>
	      	<script type="text/javascript">
		          function rese() {
		        	  
		        	  var input=document.getElementById("deptName");
		        	  input.value=" ";
		        	  var input1=document.getElementById("departProfile");
		        	  input1.value="";
		          }
	       </script>

	</body>
	
</html>